home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb.new / gdb-4.0 / bfd / configure.in < prev    next >
Encoding:
Text File  |  1991-08-24  |  2.1 KB  |  126 lines

  1. # This file is a shell script that supplies the information necessary
  2. # to tailor a template configure script into the configure script
  3. # appropriate for this directory.  For more information, check any
  4. # existing configure script.
  5.  
  6. srctrigger=libbfd.c
  7. srcname="bfd"
  8.  
  9. # per-host:
  10.  
  11. if [ "${host_os}" = "posix" ] ; then
  12.     bfd_host=posix
  13. else
  14.     case "${host_cpu}" in
  15.     rs6000)    bfd_host=aix ;;
  16.     mips)
  17.         case "${host_vendor}" in
  18.         dec)    bfd_host=dec3100 ;;
  19.         esac
  20.         ;;
  21.     m88k)
  22.         case "${host_vendor}" in
  23.         *)
  24.             case "${host_os}" in
  25.             dgux)    bfd_host=dgux ;;
  26.             esac
  27.             ;;
  28.         esac
  29.         ;;
  30.  
  31.     m68k)
  32.         case "${host_vendor}" in
  33.         hp)    
  34.             case "${host_os}" in
  35.             hpux)    bfd_host=hp9000 ;;
  36.             bsd)    bfd_host=hp300bsd ;;
  37.             esac
  38.             ;;
  39.         sony)    bfd_host=news ;;
  40.         sun)    bfd_host=sun3 ;;
  41.         esac
  42.         ;;
  43.  
  44.     i386)
  45.         case "${host_vendor}" in
  46.         *)
  47.             case "${host_os}" in
  48.             sysv)    bfd_host=i386v ;;
  49.             esac
  50.             ;;
  51.         esac
  52.         ;;
  53.  
  54.     sparc)
  55.         case "${host_vendor}" in
  56.         sun)    bfd_host=sun4 ;;
  57.         esac
  58.         ;;
  59.  
  60.     rtpc)    bfd_host=rtbsd ;;
  61.     tahoe | vax)    bfd_host=${host_cpu} ;;
  62.     esac
  63. fi
  64.  
  65. if [ ! -f config/hmake-${bfd_host} ] ; then
  66.     echo '***' BFD does not support host ${host}: no file config/hmake-${bfd_host}
  67.     exit 1
  68. fi
  69.  
  70. host_makefile_frag=config/hmake-${bfd_host}
  71.  
  72. # per-target:
  73.  
  74. case "${target_vendor}" in
  75. aout | coff | bout) bfd_target=${target_cpu}-${target_vendor} ;;
  76. sony)    bfd_target=news ;;
  77. intel)    bfd_target=${target_cpu}-coff ;;    
  78. wrs)
  79.     case "${target_cpu}" in
  80.     i960) bfd_target=i960-bout ;;
  81.     m68k) bfd_target=m68k-aout ;;
  82.     esac
  83.     ;;
  84. sun)
  85.     case "${target_cpu}" in
  86.     m68k)    bfd_target=m68k-aout ;;
  87.     sparc)    bfd_target=sparc-aout ;;
  88.     esac
  89.     ;;
  90. dec)
  91.     case "${target_cpu}" in
  92.     mips) bfd_target=dec3100 ;;
  93.     esac
  94.     ;;
  95. hp)
  96.     case "${target_cpu}" in
  97.     m68k)
  98.         case "${target_os}" in
  99.         hpux)    bfd_target=hp9000 ;;
  100.         bsd)    bfd_target=hp300bsd ;;
  101.         esac
  102.         ;;
  103.     esac
  104.     ;;
  105. none)
  106.     case "${target_cpu}" in
  107.     i386) bfd_target=i386-coff ;;
  108.     esac
  109.     ;;
  110. *)
  111.     case "${target_cpu}" in
  112.     tahoe | vax) bfd_target=${target_cpu} ;;
  113.     esac
  114.     ;;
  115. esac
  116.  
  117. if [ ! -f config/tmake-${bfd_target} ] ; then
  118.     echo '***' BFD does not support target ${target}: no file config/tmake-${bfd_target}
  119.     exit 1
  120. fi
  121.  
  122. target_makefile_frag=config/tmake-${bfd_target}
  123.  
  124. files=
  125. links=
  126.